<script setup>
import {inject} from "vue";
let count=inject("count")
const person=inject("person")
</script>

<template>
<div class="son">
  <h1>son组件</h1>
  <h4>{{count}}</h4>
  <h4>{{person}}</h4>
</div>
</template>
<style scoped lang="less">

</style>